﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Publish.aspx.cs" Inherits="WebApplication1.Publish" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<h4> Publish content to facebook </h4>
<div>

<p>
Public Post on selected user wall
</p>
</div>
<hr />
<div>
    <p>Graph Id :
    <asp:TextBox runat="server" ID="txbGraphId" ></asp:TextBox></p>
    
    <p>
Pubish what: <asp:DropDownList runat="server" ID="ddlpublishType">
    <asp:ListItem Text="feed" />
    <asp:ListItem Text="comments" />
    <asp:ListItem Text="likes" />
    <asp:ListItem Text="notes" />
    <asp:ListItem Text="links" />
    <asp:ListItem Text="attending" />
    <asp:ListItem Text="maybe" />
    <asp:ListItem Text="declined" />
    <asp:ListItem Text="albums" />
    <asp:ListItem Text="photos" />
    <asp:ListItem Text="checkins" />
</asp:DropDownList></p>
    
    <p>Text to Publish</p>
    <p><asp:TextBox runat="server" TextMode="MultiLine" Rows="5" Columns="100" ID="txbPosttoPublish" ></asp:TextBox></p>
</div>
<div>
    <asp:Button runat="server" Text="Query" ID="btnPublishPost" />
</div>
  <hr />

  
<asp:ListView runat="server" ID="listOfSearchResults">
    <LayoutTemplate>
        <div id="itemPlaceholder" runat="server">
            <asp:PlaceHolder ID="itemContainer" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemSeparatorTemplate>
         <hr />
      </ItemSeparatorTemplate>
    <ItemTemplate>
        <table>
            <tbody>
                <tr>
                <td> Id </td>
                    <td><%# ((Dictionary<string, object>)Container.DataItem)["id"].ToString()%> </td>
                </tr>
                <td>Name: </td>
                    <td><%# ((Dictionary<string, object>)Container.DataItem)["message"].ToString()%> </td>
                </tr>
                <tr>
                    <td>Category</td>
                    <td><%# ((Dictionary<string, object>)Container.DataItem)["created_time"].ToString()%> </td>
                </tr>
                <tr>
                
            </tbody>
        </table>
    </ItemTemplate>
 </asp:ListView>

</asp:Content>
